package com.example.mangroves.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.example.mangroves.entity.GeoType;
import com.example.mangroves.mapper.GeoTypeMapper;
import com.example.mangroves.service.GeoTypeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class GeoTypeServiceImpl extends ServiceImpl<GeoTypeMapper, GeoType> implements GeoTypeService {

    @Autowired
    private GeoTypeMapper geoTypeMapper;
    @Override
    public Integer findTypeIdByName(String name) {
        return geoTypeMapper.findTypeIdByName(name);
    }
}
